[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
memmove() Move a Block of Bytes
#include <string.h>
#include <mem.h>
void *memmove(destin,source,n);
void *destin; Destination
const void *source; Source
size_t n; Number of bytes
memmove() copies a block of 'n' bytes from 'source' to 'destin'. If
part of 'destin' and 'source' overlap, so that part of 'source' will
be overwritten, memmove() ensures that the original 'source' bytes
are copied correctly.
Returns: A pointer to 'destin'.
-------------------------------- Example ---------------------------------
The following statements copy 100 characters from 'from_buffer' to
'to_buffer'.
#include <mem.h>
char *buffr1, *buffr2;
main()
{
memmove(to_buffer,from_buffer,100);
}
See Also:
memcpy()
memset()
memcmp()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson